package cn.tedu.spring.egg2;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Pro {
    @Value("题目")
    private String title;
    @Value("1")
    private Integer num;
    private String comment;

    @Value("没有")
    public void setComment(String comment) {
        this.comment = comment;
    }
}
